↳ Prolog
↳ PrologToPiTRSProof
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → U21(X, Y, Z, avg_in(s(X), Y, Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
AVG_IN(s(X), Y, Z) → U11(X, Y, Z, avg_in(X, s(Y), Z))
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
AVG_IN(X, s(s(s(Y))), s(Z)) → U21(X, Y, Z, avg_in(s(X), Y, Z))
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
AVG_IN(s(X), Y, Z) → U11(X, Y, Z, avg_in(X, s(Y), Z))
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
avg_in(0, s(s(0)), s(0)) → avg_out(0, s(s(0)), s(0))
avg_in(0, s(0), 0) → avg_out(0, s(0), 0)
avg_in(0, 0, 0) → avg_out(0, 0, 0)
avg_in(X, s(s(s(Y))), s(Z)) → U2(X, Y, Z, avg_in(s(X), Y, Z))
avg_in(s(X), Y, Z) → U1(X, Y, Z, avg_in(X, s(Y), Z))
U1(X, Y, Z, avg_out(X, s(Y), Z)) → avg_out(s(X), Y, Z)
U2(X, Y, Z, avg_out(s(X), Y, Z)) → avg_out(X, s(s(s(Y))), s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
AVG_IN(s(X), Y, Z) → AVG_IN(X, s(Y), Z)
AVG_IN(X, s(s(s(Y))), s(Z)) → AVG_IN(s(X), Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
AVG_IN(s(X), Z) → AVG_IN(X, Z)
AVG_IN(X, s(Z)) → AVG_IN(s(X), Z)
From the DPs we obtained the following set of size-change graphs: